#pragma once

#include <QWidget>
#include <QPushButton>
#include <QLabel>
#include <QLineEdit>
#include <QStackedLayout>

class qtWidget2 : public QWidget
{
	Q_OBJECT
public:
	qtWidget2(QWidget* parent = 0);
	~qtWidget2();

private:
	/*QPushButton m_colorDialogBtn;
	QPushButton m_inputDialogBtn;
	QPushButton m_fontDialogBtn;
	QPushButton m_progressDialogBtn;
	QPushButton m_printDialogBtn;*/
	QLabel m_label1;
	QLabel m_label2;
	QLabel m_label3;
	QLabel m_label4;
	QLineEdit m_lineEdit;
	QPushButton m_pageBtn1;
	QPushButton m_pageBtn2;

	QStackedLayout m_slayout;

	void QLayoutTest();
	QWidget* pageone();
	QWidget* pagetwo();
	QWidget* pagethree();


private slots:
	void ColorDialogBtn_clicked();
	void InputDialogBtn_clicked();
	void FontDialogBtn_clicked();
	void ProgressDialogBtn_clicked();
	void PrintDialogBtn_clicked();
	void outtime();

	void onPreBtnClicked();
	void onNexBtnClicked();

};

